<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	response.setHeader("Pragma", "no-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>图片管理</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<c:import url="/admin/inc.html" charEncoding="UTF-8"></c:import>
		<script type="text/javascript" src="/admin/script/img/imgList.js"></script>
		<script type="text/javascript" src="/admin/script/img/imgOpt.js"></script>
		<script type="text/javascript">
			$(document).ready(function(){
				ImgList.Object.init("#box-content");
				ImgList.Object.onclick = function(imgPath){
					window.open(imgPath);
				};
				$("#up-submit").click(function(){
					ImgOpt.uploadImg();
				});
				$("#mk-submit").click(function(){
					ImgOpt.mkDir();
				});
			});
		</script>
	</head>
	<body>
	
		<c:import url="/admin/header.jsp" ></c:import>
		
		<div id="wrap">
			<c:import url="/admin/navigation.html" charEncoding="UTF-8"></c:import>	
			<div id="content">
				<div class="main-content-box box-Shadow border-radius_8px">
					<div class="box-title"><h4>图片列表</h4></div>
					<div class="inputBox">
						<form id="uploadForm" autocomplete="off">
							<span>
								<input type="hidden" name="iscustomFolder" value="true"/>
								<input type="hidden" name="uploadFolder" id="uploadFolder"/>
								<label for="imgFile">图片地址</label>&nbsp;
								<input type="file" name="imgFile" id="imgFile"></input>&nbsp;
								<label for="imgWidth">图片大小</label>&nbsp;
								宽 <input type="text" style="width:50px;text-align:right;" maxlength="4" value="" name="imgWidth" id="imgWidth"></input>
								高 <input type="text" style="width:50px;text-align:right;" maxlength="4" value="" name="imgHeight" id="imgHeight"></input>
								<a class="btn" href="javascript:void(0);" id="up-submit"><span class="icon icon-ok">&nbsp;</span>上传</a>
							</span>	
							<span class="right">
								<a class="btn" href="javascript:void(0);" id="mk-submit"><span class="icon icon-edit">&nbsp;</span>创建目录</a>
								<a class="btn" href="javascript:void(0);" id="del-submit"><span class="icon icon-del">&nbsp;</span>删除图片</a>
							</span>	
						</form>		
					</div>
					<div class="box-content" id="box-content">
						
					</div>
				</div>
			</div>
		</div>
		
		<c:import url="/admin/footer.html" charEncoding="UTF-8"></c:import>
	</body>
</html>